package com.zcx.qshop.conn;

import org.json.JSONObject;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

@HttpInlet(Conn.INLET_JSON_SHARECOUPON)
public class JsonSharecouponAsyGet extends QSAsyGet<Integer> {
	
	public String uid;

	public JsonSharecouponAsyGet(String uid, AsyCallBack asyCallBack) {

		super(asyCallBack);
		
		this.uid = uid;
		
 	}
	
	@Override
	public Integer parser(JSONObject object) {
		
		if(object.optString("message").equals("1")){
			
			return object.optInt("price");
			
		}
		
		return null;
		
	}

}
